<link type="text/css" href="/admins/js/jquery/css/ui-lightness/transa.css" rel="stylesheet" />
<script type="text/javascript" src="/js/boxy/js/jquery.boxy.js"></script>
<link href="/js/boxy/css/boxy.css" media="screen" rel="stylesheet" type="text/css" >  
<script type="text/javascript">
      $(function() {
            window.alert = Boxy.alert;
            window.confirm = Boxy.confirm;
      });

<?php if ($this->conse == 1) { ?>
           Boxy.alert('扫描信息成功！');
           window.setTimeout("location.href = '/admini/packageno/dreprint/count/<?php echo $this->id ?>'",2000);
<?php } else if ($this->conse == 2) { ?>
            Boxy.alert('扫描信息失败，请查看录入信息！');
             window.setTimeout("location.href = '/admini/packageno/index'",2000);
<?php } ?>
</script>
<form id="form1" runat="server" name="form1" action="/admini/packageno/index" method="post"> 
      <div style=" border:1px solid #DDDDDD; padding:2px; margin:10px;line-height: 36px;" id='sel'> 
            <label for="quick">&nbsp;&nbsp;所有公司名称：</label><select id="comname" name="comname"style="width:120px;height:30px;">
                  <?php foreach ($this->shipAll as $shipVal) { ?>
                        <option value="<?php echo $shipVal->Id; ?>"><?php echo $shipVal->name; ?></option>
                  <?php } ?>
            </select>
            常用快递公司名称：
            <select style="width:58px;height:30px;" id="courier">
                  <option value="11">圆通</option>
                  <option value="9">申通</option>
                  <option value="8">中通</option>
                  <option value="13">韵达</option>
                  <option value="21">顺丰</option>
                  <option value="14">天天</option>
                  <option value="174">国通</option>
                  <option value="15">汇通</option>
                  <option value="110">优速</option>
                  <option value="0">    </option>
            </select>       
      </div>
      <label style="margin-left: 10px;">
            <h3 style="font-size: 14px;">&nbsp;&nbsp;扫描订单号码</h3>
      </label>
      <textarea name="barcode2" style="margin-left: 10px;" id="barcode2" cols="120" required="" rows="30"></textarea>
      <br/>
      <input class="button" id="button1" style="margin-left: 10px;" type="submit" value="确定" />
</form>
<script type="text/javascript">
</script>
<script type="text/javascript">
      
      function browserRedirect() { 
      var sUserAgent= navigator.userAgent.toLowerCase(); 
      var bIsIpad= sUserAgent.match(/ipad/i) == "ipad"; 
      var bIsIphoneOs= sUserAgent.match(/iphone os/i) == "iphone os"; 
      var bIsMidp= sUserAgent.match(/midp/i) == "midp"; 
      var bIsUc7= sUserAgent.match(/rv:1.2.3.4/i) == "rv:1.2.3.4"; 
      var bIsUc= sUserAgent.match(/ucweb/i) == "ucweb"; 
      var bIsAndroid= sUserAgent.match(/android/i) == "android"; 
      var bIsCE= sUserAgent.match(/windows ce/i) == "windows ce"; 
      var bIsWM= sUserAgent.match(/windows mobile/i) == "windows mobile"; 

      if (bIsIpad || bIsIphoneOs || bIsMidp || bIsUc7 || bIsUc || bIsAndroid || bIsCE || bIsWM) { 
          location.href = "/admini/packageno/tablet";
      }
      } 
      window.onload=function(){browserRedirect();}
      $(document).ready(function()
      {
            $("#barcode2").val("");
            $("#comname option[value=11]").attr("selected", true);
            $('form').validate();
            $("#comname").change(function() {
                  $("#courier option[value='0']").attr("selected", true);
                  $("#barcode2").focus();
            });
            $("#courier").change(function() {
                  var val = $("#courier").val();
                  $("#comname option[value=" + val + "]").attr("selected", true);
                  $("#barcode2").focus();
            });
      });
</script>